/**
 * @Author: LongTao
 * @program: day01_longtao_springmvc_1917JA_20210102
 * @description: 用户控制层
 * @create: 2021-01-05 16:14
 * @version:1.0
 **/
package com.longtao.springmvc.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

public class UserController extends AbstractController {
    /**
     * Template method. Subclasses must implement this.
     * The contract is the same as for {@code handleRequest}.
     *
     * @param request
     * @param response
     * @see #handleRequest
     */
    @Override
    protected ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
        System.out.println("aaaaa");
        ModelAndView modelAndView=new ModelAndView();
       modelAndView.addObject("msg","学框架就要学spring MVC");
       modelAndView.setViewName("a");
        return modelAndView;
    }
}